POST Practice
Make a POST request to /api/user/2
and update the country of Bob from UK to US. What is the flag?
- URL : https://tryhackme.com/api/user/2
- Request Header :
POST api/user/2 HTTP/1.1
Host: tryhackme.com
User-Agent: Mozilla/5.0 Firefox/87.0
Content-Length: 20
username=Bob&country=US
- Response Header :
HTTP/1.1 200 Ok
Server: nginx/1.15.8
Fri, 22 Nov 2024 4 14 21 GMT
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 68
Last-Modified: Fri, 22 Nov 2024 4 14 21 GMT
- Response Body :
<html>
<head>
<title>TryHackMe</title>
</head>
<body>
<p>User #<!-- -->2<!-- --> successfully <!-- -->updated<!-- -->.</p>
</body>
</html>
- Flag :
THM{YOU_HAVE_MODIFIED_THE_USER_DATA}